-- GENERATED SPELL FOR [Firebrand Pyromancer] --


function spell0_9264(pUnit, Event) --@Flame Shock,n/a--
pUnit:FullCastSpellOnTarget(15096,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9264', 12000, 1)
end

function spell1_9264(pUnit, Event) --@Mark of Flames,n/a--
pUnit:FullCastSpellOnTarget(15128,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9264', 1000, 1)
end

function Sorts_9264(pUnit, Event)
local choix_sorts_9264 = math.random(0, 1)
if choix_sorts_9264 == 0 then
pUnit:RegisterEvent('spell0_9264', 1, 1)
end
if choix_sorts_9264 == 1 then
pUnit:RegisterEvent('spell1_9264', 1, 1)
end
end

function mob9264_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9264', math.random(1500, 3000), 1)
end

function mob9264_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9264_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9264_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9264, 1, 'mob9264_Action')
RegisterUnitEvent(9264, 2, 'mob9264_Leave')
RegisterUnitEvent(9264, 3, 'mob9264_Kill')
RegisterUnitEvent(9264, 4, 'mob9264_Die')
